#ifndef XAUDIO_H
#define XAUDIO_H

#include <QObject>
#include <iostream>
#include <string>

class XAudio : public QObject
{
    Q_OBJECT
public:
    static XAudio* getInstance();
    //导出音频文件
    virtual bool exportAudio(std::string src, std::string out,  int beginMs = 0, int outMs = 0) = 0;

    //合并音视频（视频文件，音频文件（mp3)，输出文件)
    virtual bool mergeAudio(std::string v, std::string a, std::string out) = 0;

protected:
    explicit XAudio(QObject *parent = nullptr);

signals:
};

#endif // XAUDIO_H
